<template>
  <base-echarts :option="options" :height="height" :width="width" :clear="true"></base-echarts>
</template>

<script type="text/ecmascript-6">
import BaseEcharts from "../base/BaseEcharts";
export default {
  name: "hisChart",
  components: { BaseEcharts },
  /**
   * 示例：
   *  datas: {
        dataset: {
            dimensions: ["登录次数","登录人数"],
            source: [{},{}]
         }
      }
   */
  props: ["datas", "width", "height"],
  data() {
    return {};
  },
  methods: {},
  computed: {
    options() {
      return {
        legend: {},
        tooltip: {},
        dataset: {
          dimensions: this.datas.dataset.dimensions,
          source: this.datas.dataset.source
        },
        xAxis: { type: "category" },
        yAxis: {},
        series: [{ type: "bar" }, { type: "bar" }]
      };
    }
  }
};
</script>
